<?php

namespace App\Providers;

use App\Contracts\NotifyContracts;
use App\Http\Controllers\Weapp\Login;
use App\Http\Notify\EmailNotify;
use App\Service\Search\Search;
use App\Service\Search\SearchInterface;
use App\Service\Weapp\App;
use App\Service\WeChatPay\WeChatPay;
use App\Service\WeChatPay\WeChatPayInterface;
use Illuminate\Support\ServiceProvider;

class AppServiceProvider extends ServiceProvider
{
    /**
     * Register any application services.
     *
     * @return void
     */
    public function register()
    {
        //

        $this->app->bind(NotifyContracts::class,function ($app){
            return new EmailNotify();
        });

        $this->app->bind(SearchInterface::class,function ($app){

            return new Search(config('search.allowModelList'));
        });


    }

    /**
     * Bootstrap any application services.
     *
     * @return void
     */
    public function boot()
    {
        //
    }
}
